package com.soryin.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 条件Block
 * @author Hello_海生
 * @date 2014年3月6日
 */

@Entity
@Table(name="Soryin_B_Condition")
public class ConditionBlock {
	private int id;
	private Soryin SoryinId;
	private String type;	//条件类型
	private String description;	//条件内容
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	public Soryin getSoryinId() {
		return SoryinId;
	}
	public void setSoryinId(Soryin soryinId) {
		SoryinId = soryinId;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	
}
